package com.xinzhidi.web.netty.entity.vo;

import com.xinzhidi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 指令发送InfoVo对象 device_instruction
 *
 * @author cx
 * @date 2023-06-16
 */
@ApiModel(value = "指令发送InfoVo对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class DeviceInstructionInfoVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "dtuId")
    private Long dtuId;

    @ApiModelProperty(value = "协议类型 1：户用阀门协议 2：单元阀门协议 3：室温采集器协议 4：户用热量表协议 5：单元热量表协议")
    private String protocolType;

    @ApiModelProperty(value = "协议名称")
    private String protocolName;

    @ApiModelProperty(value = "指令类型")
    private String instructType;

    @ApiModelProperty(value = "指令名称")
    private String instructName;

    @ApiModelProperty(value = "小区id")
    private Long plotId;

    @ApiModelProperty(value = "楼栋id")
    private Long buildId;

    @ApiModelProperty(value = "单元id")
    private Long unitId;

    @ApiModelProperty(value = "住户id")
    private Long householdId;

    @ApiModelProperty(value = "地址域")
    private String address;

    @ApiModelProperty(value = "指令集合(十六进制)")
    private String instructionSet;

    @ApiModelProperty(value = "设备数据")
    private String jsonData;

    @ApiModelProperty(value = "状态（0：待发送 1：已发送 2：发送失败  3：回复正常 4：回复异常  5：回复超时）")
    @Excel(name = "状态", readConverterExp = "0=：待发送,1=：已发送,2=：发送失败,3=：回复正常,4=：回复异常,5=：回复超时")
    private String status;

}
